// 新建文件，用于管理底部标签栏状态
import { defineStore } from 'pinia';

export const useTabbarStore = defineStore('tabbar', {
  state: () => ({
    active: 'home'
  }),
  actions: {
    setActive(tab) {
      this.active = tab;
    }
  }
});